<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>用户名注册-支持bootstrap-3.3.7测试页面</title>
    <link rel="stylesheet" href="cdn/plug/bootstrap-3.3.7/css/bootstrap.min.css"  crossorigin="anonymous">
</head>
<body>
<div class="container">
    <h1 style="text-align: center;">用户名注册-bootstrap-3.3.7测试页面</h1>
    <form id="form1" class="form-horizontal" method="post" action="/saveUser">
        <div class="form-group">
            <label for="uname" class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-8">
                <input type="text" name="uname" class="form-control" id="uname" >
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-8">
                <input type="password" id="password" name="password" class="form-control" >
            </div>
        </div>
        <div class="form-group">
            <label for="password_confirm" class="col-sm-2 control-label">确认密码</label>
            <div class="col-sm-8">
                <input type="password" id="password_confirm" name="password_confirm" class="form-control" >
            </div>
        </div>
        <div class="form-group">
            <div class="checkbox col-sm-offset-2 col-sm-8">
                <label>
                    <input type="checkbox" id="agree" name="agree" value="1">
                    用户协议
                </label>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                <button type="submit" id="regSub" class="btn btn-default">确认注册</button>
            </div>
        </div>
    </form>

</div>
</body>
</html>
<script src="cdn/plug/jquery-3.3.1.min.js" ></script>
<script src="cdn/plug/sea-3.0.1.js" ></script>
<script>
    // seajs 的简单配置
    seajs.config({
        base: "./cdn/",
        alias: {
            "jqueryForm": "plug/jquery.form-3.51.0.js",
            "jqueryValidate": "plug/jquery.validate-1.17.0.js",
            "bootstrap": "plug/bootstrap-3.3.7/js/bootstrap.min.js"
        }
    });

    // 加载入口模块
    seajs.use("js/member/registerUser");
</script>
<!--
<script src="/static/plug/jquery.min.js" ></script>
<script src="/static/plug/jquery.form.min.js" ></script>
-->
